﻿using Microsoft.Research.DynamicDataDisplay.DataSources;
using Prism.Commands;
using Prism.Mvvm;
using System.Windows;
using System.Windows.Input;
using System.Windows.Threading;

namespace ProcessControl.ViewModels
{
    public class HomePageViewModel : BindableBase
    {
        Dispatcher dispatcher;
        public HomePageViewModel()
        {
            dispatcher = Dispatcher.CurrentDispatcher;
        }
        public string Title { get; set; } = "首页";
        public ObservableDataSource<Point> PointDataSource { get; set; } = new ObservableDataSource<Point>();
     
        public void Add(Point point)
        {    
            PointDataSource.AppendAsync(dispatcher, point);           
        }
    }
}

